local taiji = fk.CreateSkill {
  name = "th_taiji",
  max_phase_use_time = 1,
}

taiji:addEffect("viewas", {
  anim_type = "offensive",
  pattern = "snatch",
  mute_card = false,
  prompt = "#th_taiji",
  view_as = function(self, player,cards)
    local card = Fk:cloneCard("snatch")
    card.skillName = taiji.name
    return card
  end,
  after_use = function(self, player, use)
    local room = player.room
    for _, p in ipairs(use.tos) do
      if not p.dead then
        room:useVirtualCard("dismantlement", nil, p, player, taiji.name)
      end
    end
  end,
  enabled_at_response = Util.FalseFunc,
}, { check_skill_limit = true })

Fk:loadTranslationTable{
  ["th_taiji"] = "太极",
  [":th_taiji"] = "出牌阶段限一次，你可以视为使用一张【顺手牵羊】，然后目标视为对你使用一张【过河拆桥】。",

  ["#th_taiji"] = "太极：视为使用一张【顺手牵羊】，然后目标视为对你使用一张【过河拆桥】",
}

return taiji